package grape.composite.rest.client.activity;

import grape.common.service.trans.ITransService;
import grape.composite.service.activity.po.Activity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by yangwei
 * Created at 2020/8/28 11:08
 */
@Component
@FeignClient(value = "grape-composite")
public interface ActivityClient extends ITransService<String,String> {
    
    @GetMapping(value = "/composite/activity/inner/trans")
    @Override
    public String trans(@RequestParam String type, @RequestParam String key);

    @GetMapping(value = "/composite/activity/inner/trans/support")
    @Override
    public boolean support(@RequestParam String type);

    @GetMapping("/composite/activity/inner/getActivityById")
    public Activity getActivityById(@RequestParam String id);

    @GetMapping("/composite/activity/inner/getActivityByCode")
    public Activity getActivityByCode(@RequestParam String code);
}
